Crop Content
Crop out empty pixel from the image.
Node Data | |
|---|---|
Display name | |
Crop Content | |
Internal name | |
Node_Crop_Content | |
Inheritances | |
| Node_Crop_Content | |
Inputs | |
Node_Crop_Content | |
surface |
Surface In |
enum |
Array Sizing |
color |
Background |
ipadding |
Padding |
Outputs | |
Node_Crop_Content | |
surface |
Surface Out |
integer |
Crop Distance |
atlas |
Atlas |
Attributes | |
| Color Depth | |
This node will automatically crop the image to the smallest bounding box that contains all non-transparent pixels.
Properties
Padding
Add padding around the cropped image.
Related Links
- Base Code: /scripts/node_crop_content/node_crop_content.gml
- Shader [sh_crop_conent_downsample]: /shaders/sh_crop_conent_downsample/sh_crop_conent_downsample.fsh
- Shader [sh_crop_content_replace_color]: /shaders/sh_crop_content_replace_color/sh_crop_content_replace_color.fsh